const getters = {
    sidebar: state => state.app.sidebar,
    device: state => state.app.device,
    token: state => state.user.token,
    userId: state => state.user.userInfo.userId,
    avatar: state => state.user.userInfo.staffPhoto, //头像
    name: state => state.user.userInfo.username //用户名
}
export default getters